package com.ruoyi.travel.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 特产展示对象 product
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 特产ID */
    private Long id;

    /** 特产名称 */
    @Excel(name = "特产名称")
    private String name;

    /** 特产类别 */
    @Excel(name = "特产类别")
    private Long categoryId;

    /** 特产描述 */
    @Excel(name = "特产描述")
    private String description;

    /** 特产图片 */
    @Excel(name = "特产图片")
    private String imageUrl;

    /** 特产价格 */
    @Excel(name = "特产价格")
    private BigDecimal price;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("description", getDescription())
            .append("imageUrl", getImageUrl())
            .append("price", getPrice())
            .toString();
    }
}
